//: reusing/Orc.java
// The protected keyword.
package chapter7;

import static utility.Print.*;

import java.util.ArrayList;

import simple.*;

/**
 * Exercise 18: (2) Create a class with a static final field and a final field
 * and demonstrate the difference between the two.
 * 
 * @author rDiaconescu
 * 
 */

class NewClass {
	final int i;
	static final int ZERO_VALUE = 0;
	
	public NewClass(int i) {
	    super();
	    this.i = i;
    }

	@Override
    public String toString() {
	    return "NewClass [i=" + i + "]";
    }
	
}

public class Exercise18 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		NewClass nc1 = new NewClass(1);
		NewClass nc2 = new NewClass(2);
		
		print(nc1);
		print(nc2);

		
		print(NewClass.ZERO_VALUE);
		

	}
}